package com.maylann.ratiocheater.model;

import java.util.Date;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * by Maylann
 */
public class Torrent {

    private final String torrentName;
    private final Announce tracker;
    private final List<String> filenames;
    private final String createdBy;
    private final Date creationDate;
    private final String comment;
    private String infoHash;    // TODO infoHash
    private Encoding encoding;

    public Torrent(String torrentName, Announce tracker, List<String> filenames, String createdBy, Date creationDate,
                   String comment, String infoHash, Encoding encoding) {
        this.torrentName = torrentName;
        this.tracker = tracker;
        this.filenames = filenames;
        this.createdBy = createdBy;
        this.creationDate = creationDate;
        this.comment = comment;
        this.infoHash = infoHash;
        this.encoding = encoding;
    }

    public String getTorrentName() {
        return torrentName;
    }

    public Announce getTracker() {
        return tracker;
    }

    public List<String> getFilenames() {
        return filenames;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public Date getCreationDate() {
        return creationDate;
    }

    public String getComment() {
        return comment;
    }

    public Encoding getEncoding() {
        return encoding;
    }

    public String getInfoHash() {
        return infoHash;
    }
}
